import java.util.Scanner;

/**
 * @Author: YCKOKO
 * @Date: 2023-05-11
 * @Time:17:28
 * @Description:
 */
public class demo1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
            String s = scan.nextLine();
            String[] nums = s.split(" ");

            int min = Integer.parseInt(nums[2]);
            int max = Integer.parseInt(nums[3]);

            String s1 = nums[0];
            String s2 = nums[1];

            int count = 0;



            System.out.println(count);

        }
    }
}
